export default {
  namespace: 'userData',
  state: {
    user: {
      userId: '',
      userAccount: '',
      userName: '',
      userPhone: '',
      headPortrait: '',
      isAdmin: false,
      token: '',
    },
  },
  reducers: {
    setUser(state: any, { payload }: any) {
      console.log(111111, payload);
      return {
        ...state,
        user: payload,
      };
    },
  },
};
//  obj;
// userId: "766245752501571584"
// userAccount: "18979307261"
// userName: "未实名用户"
// userPhone: "18979307261"
// headPortrait: "http://cmb.beyondsofthz.com/campus/image/defaultAvatar.png"
// isAdmin: false
